package controller

import (
	"html/template"
	"net/http"
)

func registerHomeRouters() {
	http.HandleFunc("/home", handleHome)
}

func handleHome(w http.ResponseWriter, r *http.Request) {
	t, _ := template.ParseFiles("web/layout.html", "web/home.html")
	t.ExecuteTemplate(w, "layout", map[string]interface{}{
		"content": "hello, i'm home",
	})
}
